import React from "react";
import { CloseOutlined } from "@ant-design/icons";
import { historyHandler } from "@/utils";

const AddPage: React.FC = () => {
  const onClickToSearch = () => {
    alert("to search");
    historyHandler.push({ pathname: "/search" });
  };
  return (
    <div className="container">
      <div style={{ display: "inline-block" }}>
        <CloseOutlined onClick={onClickToSearch} />
        <span>分享你的生活</span>
      </div>
    </div>
  );
};

export default AddPage;
